#ifndef __INPUT_SYS_H__
#define __INPUT_SYS_H__

#include "main.h"

#define IBUFF_SIZE 10

typedef enum{
    Type_Key = 1,
    Type_Net,
    Type_Voice
}Input_Event_Type;

//输入数据的类型

typedef struct uie{
    Input_Event_Type iType;
    int iKey_numb;
    char str[IBUFF_SIZE]; 
    int sVal;
}inputEvent, *pInputEvent;

//输入的设备集

typedef struct inputDevice{
    char *name;
    int (*Init)(void);
    struct inputDevice *next;
}inputDevice, *pInputDevice;


void InDevListIns(pInputDevice target);
void InputDevAdd(void);
void InputDevInit(void);


#endif


